using System;

namespace Bookvar.ObjectModel.Actions
{
    public abstract class MindmapActionBase : ActionBase
    {
        private readonly MindMap mindmap;

        public MindMap Mindmap
        {
            get { return mindmap; }
        }

        public override bool CanRedo
        {
            get { return true; }
        }

        public override bool CanUndo
        {
            get { return true; }
        }

        protected MindmapActionBase(MindMap mindmap)
        {
            if ( mindmap == null ) throw new ArgumentNullException( "mindmap" );

            this.mindmap = mindmap;
        }
    }
}